/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entities;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.validation.constraints.NotNull;

/**
 *
 * @author stumbledog
 */
@Embeddable
public class NflplayerseasonstatPK implements Serializable {
    @Basic(optional = false)
    @NotNull
    @Column(name = "playerId")
    private int playerId;
    @Basic(optional = false)
    @NotNull
    @Column(name = "season")
    private int season;

    public NflplayerseasonstatPK() {
    }

    public NflplayerseasonstatPK(int playerId, int season) {
        this.playerId = playerId;
        this.season = season;
    }

    public int getPlayerId() {
        return playerId;
    }

    public void setPlayerId(int playerId) {
        this.playerId = playerId;
    }

    public int getSeason() {
        return season;
    }

    public void setSeason(int season) {
        this.season = season;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) playerId;
        hash += (int) season;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof NflplayerseasonstatPK)) {
            return false;
        }
        NflplayerseasonstatPK other = (NflplayerseasonstatPK) object;
        if (this.playerId != other.playerId) {
            return false;
        }
        if (this.season != other.season) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entities.NflplayerseasonstatPK[ playerId=" + playerId + ", season=" + season + " ]";
    }
    
}
